package com.itheima.mapper;

import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper {


    List<Permission> findPage(@Param("queryString") String queryString);

    Permission findPermissionById(@Param("id") Integer id);

    void addPermission(Permission permission);

    void deletePermission(@Param("id") Integer id);

    Integer findPermissionAndRoleByPermissionId(@Param("id") Integer id);

    List<Permission> findPermissionByTableData();

    List<Permission> findPermissionAll();

    List<Integer> findPermissionByRoleId(@Param("id") Integer id);

    void updatePermission(Permission permission);
}
